package org.pih.javarosa.migration.export;

public class Row {

	private String location;
	private String item;
	private String itemType;
	private String itemFormat;
	private String content;
	private String options;
	private String action;
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getItem() {
		return item;
	}
	public void setItem(String item) {
		this.item = item;
	}
	public String getItemType() {
		return itemType;
	}
	public void setItemType(String itemType) {
		this.itemType = itemType;
	}
	public String getItemFormat() {
		return itemFormat;
	}
	public void setItemFormat(String itemFormat) {
		this.itemFormat = itemFormat;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getOptions() {
		return options;
	}
	public void setOptions(String options) {
		this.options = options;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	
	public String toString() {
		return location + ", " + item + ", " + itemType + ", " + itemFormat + ", " + content + ", " + options + ", " + action;
	}

	public boolean isNull() {
		return ((location == null || location.trim().length() == 0) &&
				(item == null || item.trim().length() == 0) &&
				(itemType == null || itemType.trim().length() == 0) &&
				(itemFormat == null || itemFormat.trim().length() == 0) &&
				(content == null || content.trim().length() == 0) &&
				(options == null || options.trim().length() == 0) &&
				(action == null || action.trim().length() == 0)) ? true : false;
	}
	
}
